import React from "react";

const Car = React.lazy(() => import("../views/car"));
const Classify = React.lazy(() => import("../views/classify"));
const Home = React.lazy(() => import("../views/home"));
const MainLayout = React.lazy(() => import("../views/mainLayout"));
const My = React.lazy(() => import("../views/my"));

export const routes = [
  {
    path: "/",
    element: <MainLayout></MainLayout>,
    children: [
      {
        path: "/",
        element: <Home></Home>,
      },
      {
        path: "/classify",
        element: <Classify></Classify>,
      },
      {
        path: "/car",
        element: <Car></Car>,
      },
      {
        path: "/my",
        element: <My></My>,
      },
    ],
  },
];
